package com.gym.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class JumpController {

    //跳转到首页
    @RequestMapping("/toPortal")
    public String toPortal(){
        return "portal";
    }

    //跳转到前台课程页面
    @RequestMapping("toPortalCourse")
    public String toPortalCourse(){
        return "portal-course";
    }

    //跳转到前台饮食页面
    @RequestMapping("toPortalFood")
    public String toPortalFood(){
        return "portal-food";
    }

    //跳转到更改课程页面
    @RequestMapping("toUpdateCourse")
    public String toUpdateCourse(){
        return "../static/page/course/editCourse";
    }

    //跳转到更改课程分类页面
    @RequestMapping("toUpdateCourseSort")
    public String toUpdateCourseSort(){
        return "../static/page/courseSort/editCourseSort.html";
    }

    //跳转到更改食物页面
    @RequestMapping("toUpdateFood")
    public String toUpdateFood(){
        return "../static/page/food/editFood";
    }

    //跳转到更改食物分类页面
    @RequestMapping("toUpdateFoodSort")
    public String toUpdateFoodSort(){
        return "../static/page/foodSort/editFoodSort";
    }


    //跳转到更改反馈页面
    @RequestMapping("toUpdateCallBack")
    public String toUpdateCallBack(){
        return "../static/page/callback/editCallback";
    }


}
